package com.edu.bean;

public class styles {

    public class Resource {
        private int id;
        private String title;
        private String type;
        private int userId; // 上传者 ID
        private boolean approved; // 是否通过审核

        // 构造函数、getter 和 setter 方法
        public Resource() {}

        public Resource(int id, String title, String type, int userId, boolean approved) {
            this.id = id;
            this.title = title;
            this.type = type;
            this.userId = userId;
            this.approved = approved;
        }

        // Getters and Setters
        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }

        public boolean isApproved() {
            return approved;
        }

        public void setApproved(boolean approved) {
            this.approved = approved;
        }
    }
}
